import type { GoodsParams, GoodsResult } from '@/types/goods'
import { http } from '@/utils/http'
export const useGoodsApi = () => {
    return {
        getGoodsById: (data:GoodsParams) => {
            return http<GoodsResult>({
                method:'GET',
                url:'/goods',
                data
            })
        }
    }
} 